package com.yayan.beautyclub.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.yayan.beautyclub.bean.Reserve;

public interface IReserveService {
	/**
	 * 根据uId与status分页获取预约信息
	 * @param uId
	 * @param status
	 * @param page
	 * @param size
	 * @return
	 */
	public List<Map<String, Object>> findReserveByUserId(long uId, int status, int page, int size);
	
	/**
	 * 根据条件获取预约信息
	 * @param start
	 * @param end
	 * @param firstcId
	 * @param secondcId
	 * @param searchKey
	 * @return
	 */
	public List<Map<String, Object>> findReserveByCondition(int page, int size, int firstcId, int secondcId, String searchKey);
	
	/**
	 * 根据rId获取预约具体信息
	 * @param rId
	 * @return
	 */
	public Map<String, Object> findReserveById(long rId);
	
	/**
	 * 保存预约信息
	 * @param reserve
	 * @return
	 */
	public long saveReserve(Reserve reserve);
	
	/**
	 * 逻辑删除预约信息
	 * @param rId
	 * @return
	 */
	public boolean cancelReserve(long rId);
	
	/**
	 * 物理删除预约信息
	 * @param rId
	 * @return
	 */
	public boolean deleteReserve(long rId);
}
